package com.hl.card.credit.service.remote;

import com.hl.card.credit.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "CARD-PACKAGE-API")
public interface UserService {
    /**
     * 获取公司信息
     * @param userid
     * @return
     */
    @RequestMapping(value = "/api/luser/getUserById", method = RequestMethod.GET)
    Object getUserById(@RequestParam("userid") String userid);
    @RequestMapping(value = "/api/luser/getUserByRegCode", method = RequestMethod.GET)
    Object getUserByRegCode( @RequestParam("regCode") String regCode);
    @RequestMapping(value = "/api/luser/updatePartial", method = RequestMethod.POST)
    Object updatePartial( @RequestBody User user);

}
